{% extends "bootstrap/base.html" %}

{% block title %}  flask blog app首页  {% endblock %}

{% block html_attribs %} lang="zh"{% endblock %}

{% block styles %} 
    {{ super() }}   
    <style>
        #myfooter
        {
            text-align: center;
            border-top: 1px solid darkgray;
            text-align: center;
            font-size: 14px;
            color: lightgray;
        }
    </style>
     
{% endblock %}

{% block scripts %}
    {{ super() }}    
{% endblock %}



{# 导航栏 #}
{% block navbar %}
    {{ super() }}

    <nav class="navbar navbar-default navbar-expand-lg">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">               
                <a class="navbar-brand" href="#">Cycle的个人博客</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#">首页 <span class="sr-only"></span></a></li>
                <li><a href="#">关于我</a></li>
                <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">文章分类<span class="caret"></span></a>
                <ul class="dropdown-menu">
                    <li><a href="#">程序人生</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="#">慢生活</a></li>
                    <li role="separator" class="divider"></li>
                    <li><a href="#">日常随笔</a></li>
                </ul>
                </li>
            </ul>

            <form class="navbar-form navbar-left">
                <div class="form-group">
                <input type="text" class="form-control" placeholder="搜索文章">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>

            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">登录</a></li>
                <li>
                    <a href="#">注册</a>
                </li>
            </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
{% endblock %}

{% block content %}
    {% block newcontent %}
        <h1>hello, bootstrap</h1>
    {% endblock %}

    {# 底部 #}
    {% block footer %} 
        <p id="myfooter">京ICP备案号：京ICP备123456789号-10000000000000</p>
    {% endblock %}
{% endblock %}


{#
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="shortcut icon" href="{{ url_for('static', filename='images/favicon.ico')}}" type="image/png">

    <title>{% block title %} flaks-app首页 {% endblock %}</title>

    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.1.0/jquery.min.js"></script>  -->

    <script src="{{ url_for('static', filename='js/jquery-3.1.0.min.js') }}"></script>

    {% block head %} {% endblock %}
</head>
<body>
    {% block content %}
        <h1>欢迎来到首页</h1>
    {% endblock %}
    
</body>
</html>

#}


